﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="userselecter.aspx.cs" Inherits="UI_userselecter" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户选择器</title>
    <link href="../images/style.css" rel="Stylesheet" />
    <script language="javascript" type="text/javascript" src="../js/jiazai.js"></script>
    <script language="javascript" type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>
    <script src="../js/introbox.js" type="text/javascript"></script>
    <script type="text/javascript">
        function cc(userid, mastername) //参数分别为id,name和password
        {
            var str = userid + "|" + mastername;
            window.returnValue = str;  //返回值
            
            window.close();
        }

        function Button5_onclick() {
            var objs = document.getElementsByTagName("input");
             var str=""
            for (var i = 0; i < objs.length; i++) {
                if (objs[i].type == "checkbox") {
                    if (objs[i].checked) {
                        str+=objs[i].value+",";
                    }
                }
            }

            window.returnValue = str;  //返回值

            window.close();

        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%" id="gvList" class="tableBorder" border='1' cellspacing="0" style="border-collapse: collapse;"
            bgcolor="#ffffff" bordercolor="#cccccc">
            <tbody>
                <tr>
                    <td>
                        名称
                    </td>
                    <td>
                        选择 
                    </td>
                </tr>
                <asp:Literal runat="server" ID="litlist" EnableViewState="false"></asp:Literal>
                <tr>
                <td></td>
                <td><input type="button" id="btnok" onclick="Button5_onclick()"  value="确定"/></td>
                </tr>
            </tbody>
        </table>
    </div>
    </form>
 
</body>
</html>
 <script language='javascript' type='text/javascript' src='/JS/tablecolor.js'></script>
    <script type='text/javascript' language='javascript'><!--
        TableColor('gvList', '#F1F8FE', '#FFFFFF', '#F8DC87', '#BCE774');
    --></script>